package com.woniuxy.api;


import com.woniuxy.common.PageResult;
import com.woniuxy.common.Result;
import com.woniuxy.form.RbacPermissionForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user",contextId = "rbacPermission")
public interface RbacPermissionApi {

    @PostMapping("/boss/addPermission")
    Result addPermission(@RequestBody RbacPermissionForm form);

    @GetMapping("/boss/selPermission")
    Result selPermission(int permissionId);

    @GetMapping("/boss/findAllPermission")
    PageResult findAllPermission(@RequestParam(defaultValue = "1") int pageIndex);



    

}
